<?php

namespace App\Models;


class UserHonor extends MyModel
{
    protected $table = 'my_user_honor';

    public function article()
    {
        return $this->hasOne('Modules\Cms\Models\Article', 'id', 'single_id');
    }
 
    public function user()
    {
        return $this->hasOne('Modules\User\Models\User', 'id', 'user_id');
    }
     public function honor()
    {
        return $this->hasOne('App\Models\ArticleHonor', 'id', 'honor_id');
    }
}